import { useEffect } from 'react';
import store from '../redux/store';

import { hide, show } from '../redux/action/TabbarActionCreator';

const useAutoHandleTabbar = () => {
  useEffect(() => {
    store.dispatch(hide());
    return () => {
      store.dispatch(show());
    };
  }, []);
};

export { useAutoHandleTabbar };
